@layout("../../../common/main.html"){
<!--模糊搜索区域-->
<div class="layui-row">
    <form class="layui-form layui-col-md12 ok-search">
        <input class="layui-input" placeholder="菜单名称" autocomplete="off" id="name" name="name">
        <button class="layui-btn" lay-submit type="button" lay-filter="search">
            <i class="layui-icon">&#xe615;</i>
        </button>
    </form>
</div>
<br>
<!--数据表格-->
<table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
@}
<!-- 头工具栏模板 -->
<script type="text/html" id="toolbarTpl">
    @if(shiro.check("sys:role:add")){
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="add" onclick="add()">添加菜单</button>
        </div>
    @}

</script>
<!-- 行工具栏模板 -->
<script type="text/html" id="operationTpl">
    @if(shiro.check("sys:role:edit")){
        <a href="javascript:" title="编辑" lay-event="edit"><i class="layui-icon">&#xe642;</i></a>
    @}
    @if(shiro.check("sys:role:del")){
        <a href="javascript:" title="删除" lay-event="del"><i class="layui-icon">&#xe640;</i></a>
    @}


</script>
<script src="${ctxPath}/static/modules/sys/menu/menu_index.js"></script>